import request from '@/utils/request'

// 查询运输许可证申报列表
export function listCertificate(query) {
  return request({
    url: '/modules/certificate/list',
    method: 'get',
    params: query
  })
}

// 查询运输许可证申报详细
export function getCertificate(id) {
  return request({
    url: '/modules/certificate/' + id,
    method: 'get'
  })
}

// 新增运输许可证申报
export function addCertificate(data) {
  return request({
    url: '/modules/certificate',
    method: 'post',
    data: data
  })
}

// 修改运输许可证申报
export function updateCertificate(data) {
  return request({
    url: '/modules/certificate',
    method: 'put',
    data: data
  })
}

// 删除运输许可证申报
export function delCertificate(id) {
  return request({
    url: '/modules/certificate/' + id,
    method: 'delete'
  })
}
